VERSION=1.0
#SMARTDOC=/home/comun/trabajo/herramientas/SmartTools7_0R03.pj/_sol28o817fast.O/SmartDoc
SMARTDOC=/home/comun/trabajo/herramientas/SmartTools9_0R00Evo.pj/_solaris8_forte6_fast_st_none_none.O/SmartDoc
OFFICIAL_SS=$(MYPJ)/official.ss
EXPERIMENTAL_SS=$(MYPJ)/experimental.ss

all : 	../tags/nemesis.$(VERSION).tag \
	../tags/nemesis.xml.$(VERSION).tag \
	../tags/nemesis.html.$(VERSION).tag \
	../tags/nemesis.app.$(VERSION).tag \
	../tags/nemesis.io.$(VERSION).tag \
	../tags/nemesis.comm.$(VERSION).tag \
	../tags/nemesis.commsec.$(VERSION).tag \
	../tags/nemesis.http.$(VERSION).tag \
	../tags/nemesis.timex.$(VERSION).tag \
	../tags/nemesis.db.$(VERSION).tag \
	../tags/nemesis.db.oracle.$(VERSION).tag \
	../tags/nemesis.db.postgre.$(VERSION).tag \
	../tags/nemesis.shmem.$(VERSION).tag \
	../tags/nemesis.tools.$(VERSION).tag \
	../tags/nemesis.sdp.$(VERSION).tag 
	@if [ ! -d ../tags ] ; then mkdir ../tags; fi ;

man :
	make nemesis
	make nemesis.xml
	make nemesis.html
	make nemesis.app
	make nemesis.io
	make nemesis.comm
	make nemesis.commsec
	make nemesis.http
	make nemesis.tools
	make nemesis.timex
	make nemesis.db
	make nemesis.db.oracle
	make nemesis.db.postgre
	make nemesis.sdp
	make nemesis.shmem

../tags/nemesis.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.core.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.core.b/doxygen.man
	make nemesis

../tags/nemesis.xml.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.xml.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.xml.b/doxygen.man
	make nemesis.xml

../tags/nemesis.html.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.html.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.html.b/doxygen.man
	make nemesis.html

../tags/nemesis.app.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.app.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.app.b/doxygen.man
	make nemesis.app

../tags/nemesis.io.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.io.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.io.b/doxygen.man
	make nemesis.io

../tags/nemesis.comm.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.comm.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.comm.b/doxygen.man
	make nemesis.comm

../tags/nemesis.commsec.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.commsec.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.commsec.b/doxygen.man
	make nemesis.commsec

../tags/nemesis.http.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.http.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.http.b/doxygen.man
	make nemesis.http

../tags/nemesis.tools.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.tools.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.tools.b/doxygen.man
	make nemesis.tools

../tags/nemesis.sdp.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.sdp.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.sdp.b/doxygen.man
	make nemesis.sdp

../tags/nemesis.timex.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.timex.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.timex.b/doxygen.man
	make nemesis.timex

../tags/nemesis.db.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.db.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.db.b/doxygen.man
	make nemesis.db

../tags/nemesis.db.oracle.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.db.oracle.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.db.oracle.b/doxygen.man
	make nemesis.db.oracle

../tags/nemesis.db.postgre.$(VERSION).tag : $(EXPERIMENTAL_SS)/libNemesis.db.postgre.b/hdrs/*.h $(EXPERIMENTAL_SS)/libNemesis.db.postgre.b/doxygen.man
	make nemesis.db.postgre

../tags/nemesis.shmem.$(VERSION).tag : $(OFFICIAL_SS)/libNemesis.shmem.b/hdrs/*.h $(OFFICIAL_SS)/libNemesis.shmem.b/doxygen.man
	make nemesis.shmem

nemesis : $(OFFICIAL_SS)/libNemesis.core.b/hdrs/*.h
	if [ -d ./nemesis ] ; then rm -rf ./nemesis/* ; else mkdir ./nemesis ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.core.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.io : $(OFFICIAL_SS)/libNemesis.io.b/hdrs/*.h
	if [ -d ./nemesis.io ] ; then rm -rf ./nemesis.io/* ; else mkdir ./nemesis.io ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.io.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.app : $(OFFICIAL_SS)/libNemesis.app.b/hdrs/*.h
	if [ -d ./nemesis.app ] ; then rm -rf ./nemesis.app/* ; else mkdir ./nemesis.app ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.app.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.xml : $(OFFICIAL_SS)/libNemesis.xml.b/hdrs/*.h
	if [ -d ./nemesis.xml ] ; then rm -rf ./nemesis.xml/* ; else mkdir ./nemesis.xml ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.xml.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.html : $(OFFICIAL_SS)/libNemesis.html.b/hdrs/*.h
	if [ -d ./nemesis.html ] ; then rm -rf ./nemesis.html/* ; else mkdir ./nemesis.html ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.html.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.comm : $(OFFICIAL_SS)/libNemesis.comm.b/hdrs/*.h
	if [ -d ./nemesis.comm ] ; then rm -rf ./nemesis.comm/* ; else mkdir ./nemesis.comm ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.comm.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.commsec : $(OFFICIAL_SS)/libNemesis.commsec.b/hdrs/*.h
	if [ -d ./nemesis.commsec ] ; then rm -rf ./nemesis.commsec/* ; else mkdir ./nemesis.commsec ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.commsec.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.http : $(OFFICIAL_SS)/libNemesis.http.b/hdrs/*.h
	if [ -d ./nemesis.http ] ; then rm -rf ./nemesis.http/* ; else mkdir ./nemesis.http ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.http.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.timex : $(OFFICIAL_SS)/libNemesis.timex.b/hdrs/*.h
	if [ -d ./nemesis.timex ] ; then rm -rf ./nemesis.timex/* ; else mkdir ./nemesis.timex ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.timex.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.db : $(OFFICIAL_SS)/libNemesis.db.b/hdrs/*.h
	if [ -d ./nemesis.db ] ; then rm -rf ./nemesis.db/* ; else mkdir ./nemesis.db ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.db.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.db.oracle : $(OFFICIAL_SS)/libNemesis.db.oracle.b/hdrs/*.h
	if [ -d ./nemesis.db.oracle ] ; then rm -rf ./nemesis.db.oracle/* ; else mkdir ./nemesis.db.oracle ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.db.oracle.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.db.postgre : $(EXPERIMENTAL_SS)/libNemesis.db.postgre.b/hdrs/*.h
	if [ -d ./nemesis.db.postgre ] ; then rm -rf ./nemesis.db.postgre/* ; else mkdir ./nemesis.db.postgre ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(EXPERIMENTAL_SS)/libNemesis.db.postgre.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.sdp : $(OFFICIAL_SS)/libNemesis.sdp.b/hdrs/*.h
	if [ -d ./nemesis.sdp ] ; then rm -rf ./nemesis.sdp/* ; else mkdir ./nemesis.sdp ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.sdp.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.tools : $(OFFICIAL_SS)/libNemesis.tools.b/hdrs/*.h
	if [ -d ./nemesis.tools ] ; then rm -rf ./nemesis.tools/* ; else mkdir ./nemesis.tools ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.tools.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

nemesis.shmem : $(OFFICIAL_SS)/libNemesis.shmem.b/hdrs/*.h
	if [ -d ./nemesis.shmem ] ; then rm -rf ./nemesis.shmem/* ; else mkdir ./nemesis.shmem ; fi ; 
	@echo "1,$ s/__VERSION__/${VERSION}/g" > /tmp/vicmd 
	@echo "x" >> /tmp/vicmd 
	@cd $(OFFICIAL_SS)/libNemesis.shmem.b; cp doxygen.man /tmp/aux; ex /tmp/aux < /tmp/vicmd; doxygen /tmp/aux; rm -f /tmp/vicmd

clobber:
	rm -rf nemesis nemesis.io nemesis.app nemesis.xml nemesis.html nemesis.comm nemesis.commsec nemesis.http nemesis.timex nemesis.db nemesis.db.oracle nemesis.db.postgre nemesis.shmem nemesis.tools nemesis.sdp ../tags/*.tag classes_*.html libraries_*.html mainFrame_*.html
